#ifndef COMMONHELPER_H
#define COMMONHELPER_H

#include <QApplication>
#include <QDebug>
#include <QFile>

class CommonHelper {
public:
    static void loadStyleSheet(const QString &filePath){
        QFile file(filePath);
        if(!file.open(QIODevice::ReadWrite)){
            qDebug() << "loadStyleSheet failed";
            return;
        }
        QTextStream out(&file);
        qApp->setStyleSheet(out.readAll());
        file.close();
    }

};


#endif // COMMONHELPER_H
